package com.itheima.fuxichengxu;

import java.util.Scanner;

public class Scanner2{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个数值");
        int a = sc.nextInt();



        for(int i = 1;i <= 3;i++){

            int n = 10;
            int yu = a / n %10;
            System.out.println("数值的第" + i + "位是：" + yu);
            n = n * 10;
        }
    }
}
